package onlinebanking.constants;

public class MSG {
	
	/**
	 * Grouped according to module
	 */
	

	
	public static final int DISCONNECT_REQUEST = -21343;
	
	public static final int LOGIN_REQUEST = 24;
	public static final int LOGIN_SUCCESS = 1;
	public static final int LOGIN_FAILED = 2;
	
	public static final int LOGOUT_REQUEST = 15;
	public static final int LOGOUT_SUCCESS = 16;
	public static final int LOGOUT_FAILED = 17;
	
	public static final int ANNOUNCEMENTS = 34;
	
	public static final int BALANCE_REQUEST = 3;
	public static final int BALANCE_RESPONSE = 4;
	
	public static final int TRANSACTION_INIT_REQUEST = 6;
	public static final int TRANSACTION_INIT_SUCCESS = 7;
	public static final int TRANSACTION_INIT_FAILED = 19;
	
	public static final int	TRANSACTION_VIEW_PENDING = 8;
	public static final int	TRANSACTION_CONFIRM_PENDING = 9;
	public static final int	TRANSACTION_CONFIRM_PENDING_ACK = 10;
	
	public static final int	TRANSACTION_VIEW_DETAILS = 11;
	
	public static final int TRANSFER_REQUEST = 12;
	public static final int TRANSFER_SUCCESS = 13;
	public static final int TRANSFER_FAILED = 14;
	
	public static final int MY_BANK_ACCOUNTS = 21;
	public static final int SELECT_ACTIVE_ACCOUNT = 22;
	public static final int LIST_OF_BANKACCOUNTS= 23;
	
	public static final int INIT_FUNDSTRANSFER= 25;
	public static final int CONFIRM_TRANSACTION = 26;
	public static final int VIEW_TRANSACTIONS = 27;
	
	public static final int LIST_OF_PENDING_TRANSACTIONS = 28;
	public static final int DETAIL_SPECIFIC_TRANSACTION = 29;
	
	public static final int CREATE_NEWBANKACCOUNT = 30;
	public static final int CREATE_NEWPERSONALACCOUNT = 31;
	public static final int ADD_ACCOUNTOWNER = 32;
	
	public static final int STATEMENT_OF_ACCOUNT = 33;
	
	
	//errors
	public static final int USER_NOT_LOGGED_IN = 18;
	
	
	public static final int CONNECTION_REFUSED = 20;
	
	//maxvalue so far 34
	
	/**
	 * To add:
	 * FORCED_DISCONNECT: reason- logged in on another computer with IP..
	 */
}
